<script setup lang="ts">
import { ref } from 'vue'
import type { SearchResSuggest } from '../../../services'

interface Props {
    list:SearchResSuggest[]
}

const props = defineProps<Props>()

type Emits = {
    confirm:[value:string]
}

const emits = defineEmits<Emits>()

</script>

<template>
    <view>
        <view v-for="item in props.list" :key="item.keyword" @click="emits('confirm',item.keyword)">
            <text>{{ item.keyword }}</text>
        </view>
    </view>
</template>

<style lang="scss" scoped>

</style>